<?php use_helper('I18N');  ?>
<div class="p15">
        <div id="page-title-div">
        	<h1 class="page-title">Identificação</h1>
        </div>
    	<br /><br />
		<span class="warning">Os campos marcados com (*) são obrigatórios.</span>
		<br />
		<div class="p15 ma"  >
					<div class="topic fl" style="width:400px;">
						<form id="form_new_user" name="form_new_user"  action="<?php echo url_for('usuario/saveLogIn')?>" method="post" >
							<h4>Quero me cadastrar</h4>
					          <table style="width:400px;">
					            <tr>
					            	<td>
					            		<?php echo $new['no_usuario']->renderLabel(); ?>
					            		<?php echo $new['no_usuario']->render(); ?>
					            	</td>
					            </tr>
					            <tr>
					            	<td>
					            		<?php echo $new['username']->renderLabel(); ?>
					            		<?php echo $new['username']->render(); ?>
					            	</td>
					            </tr>
					            <tr>
					            	<td>
					            		<?php echo $new['email']->renderLabel(); ?>
					            		<?php echo $new['email']->render(); ?>
					            	</td>
					            </tr>
					            <tr>
					            	<td>
					            		<?php echo $new['nu_cpf']->renderLabel(); ?>
					            		<?php echo $new['nu_cpf']->render(); ?>
					            	</td>
					            </tr>
					            <tr>
					            	<td>
					            		<?php echo $new['password']->renderLabel(); ?>
					            		<?php echo $new['password']->render(); ?>
					            	</td>
					            </tr>
					            <tr>
					            	<td>
					            		<?php echo $new['password2']->renderLabel(); ?>
					            		<?php echo $new['password2']->render(); ?>
					            	</td>
					            </tr>
					          </table>
					          <br />
							<input type="submit" value="Prosseguir" id="submit" class="btn">
						</form>
					</div>

			      <div class="topic fr" style="width:400px;">
			      	<h4>Já sou cadastrado</h4>
				        <form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
				         <table style="width:400px;">
				            <tr>
				            	<td>
				            		<?php echo $sign_in['username']->renderLabel(); ?>
				            		<?php echo $sign_in['username']->render(); ?>
				            	</td>
				            </tr>
				            <tr>
				            	<td>
				            		<?php echo $sign_in['password']->renderLabel(); ?>
				            		<?php echo $sign_in['password']->render(); ?>
				            	</td>
				            </tr>
			            </table>
			            	<div align="right" style="padding-right:15px;"><a href="<?php echo url_for('@sf_guard_password') ?>"><?php echo __('Esqueceu sua senha?') ?></a></div>
				          <br />
				          <input type="submit" value="Autenticar" class="btn" />
				          <br /><br />
				        </form>
			      </div>
		      <div class="clearB"></div>
		</div>
</div>

<?php

	echo javascript_include_tag(
								'jquery.form.js',
								'jquery.metadata.js',
								'jquery.validate.js'
								);

?>

<script>
    $(function()
        {
            System.formdata.save(new Array("msgAlerta", "Atenção:"));
            $('#dados_usuario_nu_cpf').mask('999.999.999-99');
        }
    );
</script>